/*
 * @Author: dxy 1776566541@qq.com
 * @Date: 2022-09-06 16:12:31
 * @LastEditors: dxy 1776566541@qq.com
 * @LastEditTime: 2022-09-08 13:46:37
 * @FilePath: \deng\src\router\index.js
 * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
 */
import Vue from 'vue'
import VueRouter from 'vue-router'
Vue.use(VueRouter)

export default new VueRouter({
  routes: [
    {
      path: '/',
      name: 'Home',
      component: () => import('../views/home/index.vue')
    },
    {
      path: '/goods',
      name: 'Goods',
      component: () => import('../views/goods/index.vue')
    },
    {
      path: '/goods/attr',
      name: 'Attr',
      component: () => import('../views/goods/components/goodsattr.vue')
    },
    {
      path: '/order',
      name: 'Order',
      component: () => import('../views/order/index.vue')
    },
    {
      path: '/confirmOrder',
      name: 'ConfirmOrder',
      component: () => import('../views/order/model/confirmOrder.vue')
    },
    {
      path: '/shoppingcart',
      name: 'ChoppingCart',
      component: () => import('../views/shoppingcart/index.vue')
    },
    {
      path: '/collection',
      name: 'Collection',
      component: () => import('../views/collection/index.vue')
    },
    {
      path: '/login',
      name: 'Login',
      component: () => import('../views/login/index.vue')
    },
    {
      path: '/signin',
      name: 'Signin',
      component: () => import('../views/signin/index.vue')
    },
    {
      path: '/about',
      name: 'About',
      component: () => import('../views/about/index.vue')
    }
  ]
})
